package com.jmu.lambda;

import java.util.Date;

public class SecurityGuard extends Staff {
    private String skills;
    private int dangerousAllowance;

    public SecurityGuard(String name, String address, int age, String sex, int salary, Date dateHired, String skills, int dangerousAllowance) {
        super(name, address, age, sex, salary, dateHired);
        this.skills = skills;
        this.dangerousAllowance = dangerousAllowance;
    }

    public String getSkills() {
        return skills;
    }

    public int getDangerousAllowance() {
        return dangerousAllowance;
    }

    public void setSkills(String skills) {
        this.skills = skills;
    }

    public void setDangerousAllowance(int dangerousAllowance) {
        this.dangerousAllowance = dangerousAllowance;
    }

    @Override
    public int getSalary() {
        return super.getSalary() + this.dangerousAllowance;
    }
}
